package com.zhijian.warehouse.manage.exception;

import lombok.Getter;
import lombok.Setter;

/**
 * 异常基类
 *
 * @Author hcg
 * @DateTime 2019年4月14日 下午2:28:22
 * @Version 1.0.1
 */
@Getter
@Setter
public class ValidateException extends RuntimeException {

    private static final long serialVersionUID = 4432093981021295447L;

    private int exCode;
    private String exMsg;
    private String exInfo;

    public ValidateException(int exCode, String exMsg) {
        this(exCode, exMsg, null);
    }

    public ValidateException(int exCode, String exMsg, String exInfo) {
        super(exMsg);
        this.exCode = exCode;
        this.exMsg = exMsg;
        this.exInfo = exInfo;
    }
}
